﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IPCByMessages
{
    /// <summary>
    /// Represents state of packet parsing process
    /// </summary>
    public enum ParserState
    {
        /// <summary>
        /// Indicates that the header is being parsed now
        /// </summary>
        Header,

        /// <summary>
        /// Indicates that the length field of packet is being parsed now
        /// </summary>
        Length,

        /// <summary>
        /// Indicates that the message field of packet is being parsed now
        /// </summary>
        Message
    }
}
